package com.atguigu.test;

class MyDate{
    int year;
    int month;
    int day;
}

class Employee{
    String name;
    MyDate birthday;
}
public class HTest3 {
        public static void main(String[] args) {
            Employee em1 = new Employee();
            Employee em2 = new Employee();
            em1.name = "张三";
            em2.name = "李四";

            em1.birthday =new MyDate();
            em2.birthday =new MyDate();
            em1.birthday.year = 2000;
            em2.birthday.year = 1999;
            em1.birthday.month = 5;
            em2.birthday.month = 6;
            em1.birthday.day = 1;
            em2.birthday.day = 14;
            System.out.println(em1.name);
            System.out.println(em2.name);
            System.out.println("姓名：" + em1.name + ";/t" + "生日:" + "年" + em1.birthday.year + "月:" + em2.birthday.month + "日:" + em1.birthday.day);
            System.out.println("姓名：" + em2.name + ";/t" + "生日:" + "年" + em2.birthday.year + "月:" + em2.birthday.month + "日:" + em2.birthday.day);


        }

        }


